package tech.jabari.user.service;

import org.springframework.web.multipart.MultipartFile;
import tech.jabari.user.entity.User;
import tech.jabari.utils.PageBean;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 用户服务
 */
public interface UserService {

    PageBean<User> selectAllUser(Map<String,Object> paramsMap);

    Integer delUser(Integer id);

    int batchDelUser(String delIds);

    User findUserById(Integer id);

    List<User> getUserByUsernameAndPwd(String username, String pwd);

    List<User> getUserListByUsername(String username);

    Integer saveUser(User user, MultipartFile headImg, HttpServletRequest request);

    Integer updateUser(User user, MultipartFile headImg, HttpServletRequest request);


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}
